Hors d'Oeuvres:
Typewriter: Echo Text

Type in the top line. It will be echoed into the bottom line without any direct commands. Type slowly. Sometimes your characters will get lost between blur and focus phases.
Type Here:
Your Echo:

Discussion

This recipe shows how to create "real time" feedback of user input. In this case, a loop scans for changes in the typed text in the top line. JavaScript is not yet well suited to such a task, as can be seen by the "jerky" feedback.
Copyright ©2000 by Charles River Media, All Rights Reserved